package com.trivia

import java.util.Random

import com.trivia.utils.RandomListUtls;

class QuestionService {

    static transactional = true

    def getQuestions(Level level) {
		
		Question.executeQuery("from Question q where q.level.id = :levelID order by rand()", [levelID:level.id], [max:level.questionQuantity])

    }
	
	
}
